import myAxios from "../MyAxios";
import BASEURL from "../BaseUrl";
const cinemaApi = {
  //添加影院接口/cinema/add
  add(params) {
    return myAxios.post(BASEURL + "/cinema/add", params);
  },
  //查询所有影院标签
  queryAllTags() {
    return myAxios.get(BASEURL + "/cinema/tags");
  },
  //查询所有影院
  list() {
    return myAxios.get(BASEURL + "/cinemas");
  },
  //删除影院
  delete(params) {
    return myAxios.post(BASEURL + "/cinema/del", params);
  },
  //通过ID查询影院
  queryById(params) {
    return myAxios.get(BASEURL + "/cinema/sel", params);
  },
  //通过ID修改影院
  update(params) {
    return myAxios.post(BASEURL + "/cinema/update", params);
  },
};
export default cinemaApi;
